export default {
    //存
    sessionSet(key, value) {
        sessionStorage.setItem(key, JSON.stringify(value))
    },
    //取
    sessionGet(key) {
        return sessionStorage.getItem(key)
    },
    //删
    sessionRemove(key) {
        sessionStorage.removeItem(key)
    },
    //清空
    sessionClear() {
        sessionStorage.clear()
    },
    //存
    localSet(key, value) {
        localStorage.setItem(key, JSON.stringify(value))
    },
    //取
    localGet(key) {
        return localStorage.getItem(key)
    },
    //删
    localRemove(key) {
        localStorage.removeItem(key)
    },
    //清空
    localClear() {
        localStorage.clear()
    }
}